#ifndef __HIKARI_playerScript___FILE__DEFINED
#define __HIKARI_playerScript___FILE__DEFINED

#include "hikari.h"

class playerScript:public BaseHikariScript{
public:
//PLEASE DO NOT MODIFY THIS SECTION
//PROPERTIES_SECTION_START
//PROPERTIES_SECTION_END
    //virtual void sceneLoaded(HObj*object, HikariContext*context){}
	//virtual void sceneUnloading(HObj*object, HikariContext*context){}
	virtual void update(HObj*object, HikariContext*context){
		if(context->getInput()->IsKeyDown(KEY_UP)){
			object->moveRigidBodyZ(0.2);
		}

		if(context->getInput()->IsKeyDown(KEY_DOWN)){
			object->moveRigidBodyZ(-0.2);
		}

		if(context->getInput()->IsKeyDown(KEY_LEFT)){
			object->turnRigidBodyY(-2);
		}

		if(context->getInput()->IsKeyDown(KEY_RIGHT)){
			object->turnRigidBodyY(2);
		}
	};
    
};
#endif